package com.bby.common.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Favorite {
    String fileId;// 收藏的文件id
    String name;// 收藏名
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createTime;// 收藏建立日期

    public Favorite(String fileId, String name) {
        this.fileId = fileId;
        this.name = name;
        this.createTime = new Date();
    }
}
